package com.czxy.changgou3.com.czxy.changgou3.service;

import com.czxy.changgou3.com.czxy.changgou3.mapper.BrandMapper;
import com.czxy.changgou3.pojo.Brand;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zhangmengxiang1@itcast.cn
 * @version 1.0
 * @date 2020/4/22
 */
@Service
@Transactional
public class BrandService {

    @Resource
    private BrandMapper brandMapper;

    public List<Brand> findAll(Integer categoryId){
        //查询
        List<Brand> list = brandMapper.findAll(categoryId);
        //返回
        return list;
    }

}
